package com.lovo.sys.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@ApiModel(value = "页面展示商品实体类",description = "页面展示商品实体类")
@Document(indexName = "img_index")
@Data
public class EsBean {
      @Id
      @Field(type = FieldType.Keyword)
      @ApiModelProperty("雪花id")
      private String newsId;
      @Field(type = FieldType.Keyword)
      @ApiModelProperty("商品名")
      private String productName;
      @Field(type = FieldType.Text)
      @ApiModelProperty("美化内容")
      private String info;
}
